import { get, post } from "../utils/request";
// 用户注册接口
export const reqRegisterAPI = (data) => post("/api/auth/register", data);

// 用户登录
export const reqLoginAPI = (data) => post("/api/auth/login", data);

//获取用户信息
export const reqProfileAPI = () => get("/api/auth/profile");

//查询数据库所有用户
export const reqUsersAPI = () => get("/api/auth/users");
